package service;

import pojo.Function;
import pojo.SecoundMenu;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by Administrator on 2017-12-10.
 */
public interface PermissionService {

    List<Function> manageModule() throws SQLException;

    List<Function> getCurrFunction(int pageNow, int page_size) throws SQLException;

    int openFunction(int id,String functionDoc) throws SQLException;

    int delFunction(int id) throws SQLException;

    List<SecoundMenu> getSecoundMenu() throws SQLException;

    Function checkFunction(String moduleName, String secoundMenu) throws SQLException;

    SecoundMenu getFid(String secoundMenu) throws SQLException;

    int addSecoundMenu(SecoundMenu secoundMenu) throws SQLException;

    int addFunction(Function function) throws SQLException;
}
